//=======================================================
//AUTHOR: JEFF XL. ZHANG ARIZONA STATE UNIVERSITY
//ALL RIGHTS RESERVED  2008
//=======================================================
#pragma once
#include<stdlib.h>
#include<iostream>
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>


int Display(char *name, IplImage *img){
	cvNamedWindow(name);
	cvShowImage(name, img);
	return 0;
}

double PointDistance(CvPoint Pt1, CvPoint Pt2) {
	return sqrt(pow((Pt1.x - Pt2.x),2.0) + pow((Pt1.y - Pt2.y),2.0));
}